package controllers.bluehat;

import java.util.ArrayList;
import java.util.List;

import models.User;
import utils.json.data.UserJSON;

public class UserController extends BluehatBaseController {

	public static void list() {
		List<User> users = User.getAll();
		ArrayList<UserJSON> usersJSON = new ArrayList<UserJSON>();
		for(User user : users) usersJSON.add(new UserJSON(user));
		
		renderJSON(usersJSON);
	}
}
